package com.burstly.lib.component.networkcomponent.burstly.html.ormma.util;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.burstly.lib.component.networkcomponent.burstly.html.ormma.OrmmaDisplayController;

public class OrmmaConfigurationBroadcastReceiver extends BroadcastReceiver
{
  private int mLastOrientation;
  private final OrmmaDisplayController mOrmmaDisplayController;

  public OrmmaConfigurationBroadcastReceiver(OrmmaDisplayController paramOrmmaDisplayController)
  {
    this.mOrmmaDisplayController = paramOrmmaDisplayController;
    this.mLastOrientation = this.mOrmmaDisplayController.getOrientation();
  }

  public void onReceive(Context paramContext, Intent paramIntent)
  {
    if (paramIntent.getAction().equals("android.intent.action.CONFIGURATION_CHANGED"))
    {
      int i = this.mOrmmaDisplayController.getOrientation();
      if (i != this.mLastOrientation)
      {
        this.mLastOrientation = i;
        this.mOrmmaDisplayController.onOrientationChanged(this.mLastOrientation);
      }
    }
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.component.networkcomponent.burstly.html.ormma.util.OrmmaConfigurationBroadcastReceiver
 * JD-Core Version:    0.6.2
 */